<html>
<head>
    <title>资讯管理</title>
    <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
    <!--<link href="${mainDomain}/statics/js/dropzone/dropzone.min.css" type="text/css" rel="stylesheet">-->
    <style type="text/css">
        div{
            width:100%;
        }
    </style>
</head>
<body>

<div>
	<span>您的位置:</span>
    <span>资讯管理&gt;&gt;</span>
    <span><#if infoDetailVO.id?exists>编辑资讯<#else>新增资讯</#if></span>
</div>
<div class="content">
	<div class="content_top" style="">
		<#if infoDetailVO.id?exists>
			<span>编辑资讯</span>
		<#else>
			<span>新增资讯</span>
		</#if>
	</div>
	<form enctype="multipart/form-data" target="file_upload_return" id="addArticleForm" class="dropzone" method="post" action="${mainDomain}/picroom/uploadCoverPic.action" >
	<input type="hidden" name="sourceType" value="${(infoDetailVO.sourceType)!'1'}">
	<input type="hidden" name="infoStatus" value="${(infoDetailVO.infoStatus)!'1'}">
	<input type="hidden" id="infoId" name="id" value="${(infoDetailVO.id)!''}">
	<input type="hidden" id="channelId" name="id" value="${(infoDetailVO.locChannelId)!''}">
	<input type="hidden" id="themeId" name="id" value="${(infoDetailVO.locThemeId)!''}">
	
	<table class="content_table" style="width:98%;"cellspacing="10" cellpadding="10">
		<tr><td class="content_table_td1">
			<span style="color:red;">*</span>类型：
			</td>
			<td class="content_table_td2" colspan="8">
				<select id="locChannelId" name="locChannelId">
					<option value='-1'>---请选择---</option>
					<option value='100'>货运平台资讯</option>
					<option value='101'>货运港口咨询</option>
					<option value='102'>会员中心</option>
				</select>
				<select id="locThemeId" name="locThemeId">
					<option value='-1'>---请选择---</option>
				</select>
			</td>
		</tr>
		<tr id="titleTr"><td id="titletd" class="content_table_td1">
			<span style="color:red;">*</span>标题：</td>
			<td class="content_table_td2" colspan="8"><input name="title" id="title" type="text" class="content_input" maxlength="50" value="${(infoDetailVO.title)!''}" /></td>
		</tr>
		<tr id = "subTitleTr"><td id="subtitleid" class="content_table_td1">
			副标题：
			</td>
			<td class="content_table_td2" colspan="8"><input name="subTitle" id="subTitle" type="text" class="content_input" maxlength="50" value="${(infoDetailVO.subTitle)!''}" /></td>
		</tr>
		<tr id = "keyWordTr"><td id="keywordid" class="content_table_td1">
			关键字：
			</td>
			<td class="content_table_td2" colspan="8"><input name="keyWord" id="keyWord" type="text" class="content_input" value="${(infoDetailVO.keyWord)!''}" />(多个请使用“，”或者空格隔开)</td>
		</tr>
		<tr id = "videoUrlTr"><td class="content_table_td1">
            视频地址：
            </td>
            <td class="content_table_td2" colspan="8"><input name="videoUrl" id="videoUrl" type="text" class="content_input" maxlength="50" value="${(infoDetailVO.videoUrl)!''}" /></td>
        </tr>
		<tr id = "infoNoteTr">
			<td class="content_table_td1">
			摘要：
			</td>
			<td class="content_table_td2"><textarea name="infoNote" rows="2" cols="50" id="infoNote" maxlength="55">${(infoDetailVO.infoNote)!''}</textarea>(不超过55个字)</td>
		</tr>
		<tr id = "attachTr">
			<td class="content_table_td1">
				附件：
			</td>
			<td class="content_table_td2">
				<input type="file" name="file"></br>
				<input type="file" name="file"></br>
				<input type="file" name="file">
			</td>
		</tr>
		<tr id = "zcdwUrl"><td class="content_table_td1">
			链接地址：
			</td>
			<td class="content_table_td2" colspan="8"><input name="coverPicUrlXJHY" id="coverPicUrlXJHY" type="text" class="content_input" maxlength="300" value="${(infoDetailVO.coverPicUrl)!''}" /></td>
		</tr>
		<tr id = "xjhyTr">
			<td class="content_table_td1">
				图片上传：
			</td>
			<td class="content_table_td2">
				<input type="file" name="xjhyfile">
			</td>
		</tr>
		<tr id="editorTr">
			<td class="content_table_td1">
			<span style="color:red;">*</span>正文：
			</td>
			<td colspan="8">
				<div>
				    <script id="editor" type="text/plain" style="width:900px;height:400px;"></script>
				</div>
				<#--
				<div id="sensitivewordDiv" style="hight:50px">&nbsp;</div>
				-->
			</td>
		</tr>
	</table>
	<!--<div class="dz-default dz-message"><span>点击或拖拽上传附件</span></div>-->
	<center>
		<input type="button"  value="预览" id="previewButton" class="w80" />
		<input type="button"  value="保存" id="saveButton" class="ml40 w80"/>
	</center>
	</form>
	<iframe id="file_upload_return" name="file_upload_return" style="display: none"></iframe>
</div>

<div style="display: none;" id="content_hidden_id">${(infoDetailVO.infoContent)!''}</div>
<span id="testNode" style="display: none;" ></span>
<script>
	var mainDomain = "${mainDomain}";
	var miscDomain = "${mainDomain}";
	var staticDomain = "${staticDomain}";
	var cookieDomain = "${cookieDomain}";
</script>
<script type="text/javascript" charset="utf-8" src="${mainDomain}/statics/js/ueditor/ueditor.config.js?v=123"></script>
<script type="text/javascript" charset="utf-8" src="${mainDomain}/statics/js/ueditor/ueditor.all.min.js"> </script>
<!--建议手动加在语言，避免在ie下有时因为加载语言失败导致编辑器加载失败-->
<!--这里加载的语言文件会覆盖你在配置项目里添加的语言类型，比如你在配置项目里配置的是英文，这里加载的中文，那最后就是中文-->
<script type="text/javascript" charset="utf-8" src="${mainDomain}/statics/js/ueditor/lang/zh-cn/zh-cn.js"></script>
<script type="text/javascript" charset="utf-8" src="${mainDomain}/statics/js/common/picRoomUtil.js"></script>
<!--<script type="text/javascript" charset="utf-8" src="${mainDomain}/statics/js/dropzone/dropzone.min.js"></script>-->
<script type="text/javascript" charset="utf-8" src="${mainDomain}/statics/js/backend/acquisition/articlehy.js"></script>
<script type="text/javascript" charset="utf-8" src="${mainDomain}/statics/js/backend/acquisition/uploadFile.js"></script>

<script type="text/javascript">

    //实例化编辑器
    //建议使用工厂方法getEditor创建和引用编辑器实例，如果在某个闭包下引用该编辑器，直接调用UE.getEditor('editor')就能拿到相关的实例
    var ue = UE.getEditor('editor');
</script>
</body>
</html>